package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Setmeal;

import java.util.List;

/**
 * @author ck
 * @date 2021/10/13 11:46
 */
public interface SetmealService  extends IService<Setmeal> {

    //新增套餐
    public  void  saveWithDis(SetmealDto setmealDto);

    //删除套餐+批量删除
    public void removeWithDish(List<Long> ids);

    //修改停售和起售状态
    public void updateWithStatus(int status, List<Long> ids);

    //修改信息
    public void updateData(SetmealDto setmealDto);

    //根据id查询数据
    public R<SetmealDto> getWithId(Long id);

    //分页查询
    public R<Page> pageCat(int page, int pageSize, String name);
}
